package chances.wechat.service;

import java.util.Date;
import java.util.List;

import chances.wechat.data.PageBean;
import chances.wechat.entity.UserCollection;

public interface CollectionService {
	/**
	 * 添加用户收藏.
	 * @param collection
	 */
	public void addCollection(UserCollection collection);
	
	/**
	 * 查询用户收藏记录.
	 * @return
	 */
	public List<UserCollection> listCollections(String userId,String contentType,Date beginTime,Date endTime,PageBean page);
	
	/**
	 * 查询用户收藏记录.
	 * @param userId
	 * @param contentType
	 * @param category
	 * @param beginTime
	 * @param endTime
	 * @param page
	 * @return
	 */
	public List<UserCollection> listCollections(String userId,String contentType,String category,Date beginTime,Date endTime,PageBean page);
	
	/**
	 * 按内容查询用户收藏记录.
	 * @param userId
	 * @param contentId
	 * @return
	 */
	public List<UserCollection> listCollections(String userId,String contentId);
	
	/**
	 * 删除用户收藏记录.
	 * @param userId
	 * @param contentId
	 */
	public void removeCollection(String userId,String contentId);
	
	/**
	 * 清空用户收藏记录.
	 * @param userId
	 */
	public void clearCollections(String userId,String category);

	/**
	 * 批量删除用户收藏记录.
	 * @param userId
	 */
	public void batchDelUserCollection(String[] codes, String userId);
	
}
